Part Number Hot Search : 
T54FC AG01Z T1011E SC425 30CTT100 K2010 TPS793 FR151G1
Product Description
Full Text Search
 

To Download MOTG-128 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  4d systems modules on the go series MOTG-128 pluggable sd lcd display module data sheet document date: 21 st november 2011 document revision: 2.0 ? 2011 4d systems www.4dsystems.com.au page 1 of 42
4d systems MOTG-128 pluggable sd lcd display data sheet description MOTG-128 is a small pluggable module ideally suited as a diagnostic display for embedded systems. it incorporates a 1.44" 128x128 resolution full colour lcd-tft and has a wide range of uses in educational, experimental as well as during any development phase where a quick display solution is required. it comes in a micro-sd memory card format which is designed to interface to any embedded platform that has an on board micro-sd (or sd) card adaptor. powerful graphics, text, image, animation and countless more features are built inside the MOTG-128. the display module utilises the standard spi signals and acts as a slave device to the host micro. it offers a simple yet effective command set to any host platform that can communicate via a spi port and all screen related functions are sent using a simple protocol. MOTG-128 device simply plugs into a standard sd/sd socket for quick assembly and maintenance, no need to design for specialised connectors or spend time waiting for them to arrive from exotic suppliers, just add a standard sd socket and off you go. don't need the device permanently, or want to make it optional? simple, just unplug. need some way of debugging your latest brainchild without top end equipment? just plug a MOTG-128 into its sd socket and use it as an outboard diagnostic display. the MOTG-128 is a novel concept from 4d systems that belong to a broader range of modules-on-the-go series. some of the other modules on offer are: ? motg-96: pluggable 0.96" 96x64 oled display module in a micro-sd card format. ? motg-gps: pluggable gps module with a tiny built in ceramic antenna in a micro-sd card format. features ? low-cost pluggable lcd display module. ? 128xrgbx128 resolution, 65k true to life colours, lcd-tft screen. ? 1.44 diagonal size with an active display area: 25.5mm x 26.5mm . ? led back lighting with greater than 150 very wide viewing angle . ? easy micro-sd card form factor that will plug into any embedded host platform that has a micro-sd or sd card adaptor. ? spi interface to the host via the micro-sd or sd adaptor. ? comprehensive set of built in high level graphics functions and algorithms that can draw lines, circles, text, and much more. ? rohs compliant. ? 2011 4d systems www.4dsystems.com.au page 2 of 42
MOTG-128 data sheet table of contents 1. pin configuration and description ............................................................................................. 4 2. micro-sd spi hardware interface ............................................................................................... 5 2.1 generic host master spi timing .................................................................................................. 6 2.2 MOTG-128 slave spi timing diagram ........................................................................................... 5 3. software interface ........................................................................................................................ 7 3.1 command protocol C flow control .............................................................................................. 7 4. command set ................................................................................................................................. 8 4.1 general commands ..................................................................................................................... 9 4.2 graphics commands .................................................................................................................. 14 4.3 text commands ......................................................................................................................... 29 5. lcd screen precautions .............................................................................................................. 37 6. development, support and test tools ..................................................................................... 38 6.1 motg programming cable and adaptor ..................................................................................... 38 6.2 4d fat controller C software test tool ....................................................................................... 38 6.3 programing the motg with a pmmc file .................................................................................... 39 6.4 m icro-sd to sd adaptor ............................................................................................................. 39 7. specifications and ratings ......................................................................................................... 40 proprietary information ................................................................................................................. 42 disclaimer of warranties & limitation of liability ..................................................................... 42 contact information ........................................................................................................................ 42 ? 2011 4d systems www.4dsystems.com.au page 3 of 42
MOTG-128 data sheet 1. pin configuration and description pin symbol i/o description 1 nc -- not connected. 2 cs i motg spi chip select. the host asserts this signal low when accessing the display module. 3 sdi i motg spi data in. this pin connects to the data out of the host spi. 4 3.3v p voltage supply input. range is 3.0v to 3.6v, nominal 3.3v. 5 sck i motg spi clock in. this pin connects to the host spi clock output. 6 gnd p ground. 7 sdo o motg spi data out. this pin connects to the host spi data input. 8 reset i motg reset input (active low). this pin is only used by the programming module for updating the motg with pmmc files. not used during normal operation. legend: i = input, o = output, p = power ? 2011 4d systems www.4dsystems.com.au page 4 of 42
MOTG-128 data sheet 2. micro-sd spi hardware interface the MOTG-128 is designed to plug into standard micro-sd card sockets employed in most embedded platforms. it can also plug into standard sd slots with the aid of a micro-sd to sd adaptor. it is important to note that the communication interface is via standard spi signalling and most embedded platforms employ the spi mode for their on board memory card sockets. the following timing diagrams provide detailed information about the required spi signalling. ? note1: MOTG-128 supports a maximum clock rate of 12mhz. ? note2: MOTG-128 will not work with external or built in pc card readers. these devices do not utilise the spi signalling as required by the motg devices. 2.1 generic host master spi timing ? 2011 4d systems www.4dsystems.com.au page 5 of 42
MOTG-128 data sheet 2.2 MOTG-128 slave spi timing diagram item symbol min. typ. max. unit sdo data output valid after cs edge t1 -- -- 50 ns cs to sck input t2 100 -- -- ns sck input high period t3 40 -- -- ns sck input low period t4 40 -- -- ns cs after sck edge t5 190 -- -- ns sdo data output valid after sck edge t6 -- -- 50 ns sdo data output rise and fall period t7 -- -- 25 ns cs to sdo output high-impedance t8 10 -- 50 ns hold time of sdi data input to sck edge t9 100 -- -- ns ? 2011 4d systems www.4dsystems.com.au page 6 of 42
MOTG-128 data sheet 3. software interface the MOTG-128 display module is a slave peripheral device and it provides bidirectional communications to a host controller via its spi interface. all communications between the host and the device occur over this spi interface. the protocol is simple and easy to implement. ? note: the host must initialise its spi port as the master and must meet the motg spi specifications outlined in the previous section. 3.1 command protocol C flow control the motg modules are slave devices and all communication and events must be initiated by the host. each command is made up of a sequence of data bytes. when a command is sent to the device and the operation is completed, it will always return a response. for a command that has no specific response the device will send back a single acknowledge byte called the ack (06hex) , in the case of success, or nak (15hex) , in the case of failure. commands having specific responses may send back varying numbers of bytes, depending upon the command and response. it will take the device a certain amount of time to respond, depending on the command type and the operation that has to be performed. if the motg device receives a command that it does not understand it will reply back with a negative acknowledge called the nak (15hex). since a command is only identified by its position in the sequence of data bytes sending incorrect data can result in wildly incorrect operation. ? 2011 4d systems www.4dsystems.com.au page 7 of 42
MOTG-128 data sheet 4. command set the command interface between the motg device and the host is via the serial interface. a handful of easy to learn commands provide complete access to all the available functions. the simplified command set also means that very low overheads are imposed on the host controller. commands and responses can be either single bytes or many bytes. all commands return a response, either an acknowledge or data. the command set is grouped into following sections: ? general commands ? graphics commands ? text commands each command set is described in detail in the following sections. ? separation characters such as commas ',' or spaces ' ' or brackets'(' ')' between bytes that are shown in the command/response syntax descriptors are purely for legibility purposes and must not be considered as part of any transmitted/received data unless specifically stated. ? 2011 4d systems www.4dsystems.com.au page 8 of 42 host motg command response
MOTG-128 data sheet 4.1 general commands summary of commands in this section: ? version-device info request C 56hex ? replace background colour C 42hex ? clear screen C 45hex ? display control functions C 59hex ? 2011 4d systems www.4dsystems.com.au page 9 of 42
MOTG-128 data sheet 4.1.1 version-device info request - 56hex command cmd, output cmd 56 (hex) or v (ascii) : command header byte output 00hex : outputs the version and device info to the spi port only. 01hex : outputs the version and device info to the spi port as well as to the screen. response device_type, hardware_rev, firmware_rev, horizontal_res, vertical_res device_type this response indicates the device type. 00hex = micro-oled. 01hex = micro-lcd. 02hex = micro-vga. 03hex = micro-drive. 04hex = motg-oled. 05hex = motg-lcd. hardware_rev this response indicates the device hardware version firmware_rev this response indicates the device firmware version. horizontal_res this response indicates the horizontal resolution of the display. 22hex : 220 pixels 28hex : 128 pixels 32hex : 320 pixels 60hex : 160 pixels 64hex : 64 pixels 76hex : 176 pixels 96hex : 96 pixels vertical_res this response indicates the vertical resolution of the display. see horizontal_res above for resolution options. 22hex : 220 pixels 28hex : 128 pixels 32hex : 320 pixels 60hex : 160 pixels 64hex : 64 pixels 76hex : 176 pixels 96hex : 96 pixels description this command requests all the necessary information from the device about its characteristics and capability. ? 2011 4d systems www.4dsystems.com.au page 10 of 42
MOTG-128 data sheet 4.1.2 replace background colour C 42hex command cmd, colour (msb:lsb) cmd 42 (hex) or b (ascii) : command header byte colour 2 bytes (16 bits) define the background colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 lsb : g2g1g0 b4b3b2b1b0 response acknowledge acknowledge 06 (hex) : ack byte if operation successful 15 (hex) : nak byte if unsuccessful description this command changes the current background colour. once this command is sent, only the background colour will change. any other object on the screen with a different colour value will not be affected. example command data: 42hex, ffhex, ffhex this example sets the background colour value to ffffhex (white). ? 2011 4d systems www.4dsystems.com.au page 11 of 42
MOTG-128 data sheet 4.1.3 clear screen C 45hex command cmd cmd 45 (hex) or e (ascii) : command header byte response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command clears the entire screen using the current background colour example command data: 45hex (clear the screen). ? 2011 4d systems www.4dsystems.com.au page 12 of 42
MOTG-128 data sheet 4.1.4 display control functions C 59hex command cmd, mode, value cmd 59 (hex) or y (ascii) : command header byte mode 00hex : na 01hex : display on/off display off : when value = 00hex display on : when value = 01hex 02hex : contrast adjust contrast range : when value = 00hex to 0fhex 03hex : display powerup-shutdown (low power mode) display shutdown : when value = 00hex display powerup : when value = 01hex value see mode description above. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command changes some of the display settings such as contrast and low power mode. ? 2011 4d systems www.4dsystems.com.au page 13 of 42
MOTG-128 data sheet 4.2 graphics commands summary of commands in this section: ? add user bitmap character C 41hex ? draw circle C 43hex ? draw user bitmap character C 44hex ? draw triangle C 47hex ? draw image-icon C 49hex ? set background colour C 4bhex ? draw line C 4chex ? draw pixel C 50hex ? read pixel C 52hex ? screen copy-paste C 63hex ? draw polygon C 67hex ? replace colour C 6bhex ? set pen size C 70hex ? draw rectangle C 72hex ? 2011 4d systems www.4dsystems.com.au page 14 of 42
MOTG-128 data sheet 4.2.1 add user bitmap character - 41hex command cmd, char_idx, data1, data2, .. , data8 cmd 41 (hex) or a (ascii) : command header byte char_idx bitmap character index to add to memory. r ange is 0 to 31 ( 00 h to 1f h), 32 characters of 8x8 format. data1..data8 8 data bytes that make up the composition of the bitmap character. the 8x8 bitmap composition is 1 byte wide (8 bits) by 8 bytes deep. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will add a user defined bitmap character into the internal memory. b7 b6 b5 b4 b3 b2 b1 b0 data bits data1 (18 hex ) data2 (24 hex ) data3 (42 hex ) data4 (81 hex ) data5 (81 hex ) data6 (42 hex ) data7 (24 hex ) data8 (18 hex ) example of 8x8 user defined bitmap example command data: 41hex, 01hex, 18hex, 24hex, 42hex, 81hex, 81hex, 42hex, 24hex, 18hex this example adds and saves a user defined 8x8 bitmap as character index 1 into memory. ? 2011 4d systems www.4dsystems.com.au page 15 of 42
MOTG-128 data sheet 4.2.2 draw circle - 43hex command cmd, x, y, radius, colour (msb:lsb) cmd 43 (hex) or c (ascii) : command header byte x horizontal position of the circle centre. y vertical position of the circle centre. radius radius of the circle. colour 2 bytes define the circle colour. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw a coloured circle centred at (x, y) with a radius determined by the value set in the ' radius' byte . the circle can be either solid or wire frame (empty) depending on the value of the pen size (see set pen size command). when pen size = 0 : circle is solid when pen size = 1 : circle is wire frame example command data: 43hex, 3fhex, 3fhex, 22hex, 00hex, 1fhex draws a red circle ( 001f hex) centred at x = 63 dec ( 3f hex) and y = 63 dec ( 3f hex) with a radius of 34 dec ( 22 hex). ? 2011 4d systems www.4dsystems.com.au page 16 of 42
MOTG-128 data sheet 4.2.3 draw user bitmap character - 44hex command cmd, char_idx, x, y, colour (msb:lsb) cmd 44 (hex) or d (ascii) : command header byte char_idx bitmap character index to draw from the previously added bitmap characters into memory. r ange is 0 to 31 ( 00 h to 1f h), 32 characters of 8x8 format. x horizontal display position of the bitmap character. y vertical display position of the bitmap character. colour 2 bytes bitmap colour value. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command draws the previously defined user bitmap character at location (x, y) on the screen. user defined bitmaps allow drawing & displaying unlimited graphic patterns quickly & effectively. examples command data: 44hex, 01hex , 00hex, 00hex, f8hex, 00hex (display 8x8 bitmap character index 1 at x = 0, y = 0, colour = red). command data: 44hex, 02hex, 08hex, 00hex, 07hex, e0hex (display 8x8 bitmap character index 2 at x = 8, y = 0, colour = green). command data: 44hex, 03hex, 10hex, 08hex, 00hex, 1fhex (display 8x8 bitmap character index 3 at x = 16, y = 8, colour = blue). ? 2011 4d systems www.4dsystems.com.au page 17 of 42
MOTG-128 data sheet 4.2.4 draw triangle - 47hex command cmd, x1, y1, x2, y2, x3, y3, colour (msb:lsb) cmd 47 (hex) or g (ascii) : command header byte x1, y1, x2, y2, x3, y3 3 vertices of the triangle. these must be specified in an anti-clockwise fashion. colour 2 bytes (big endian) triangle colour value. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command draws a solid/wire-frame triangle. the vertices must be specified in an anti- clock wise manner, i.e. x2 < x1 : x3 > x2 : y2 > y1 : y3 > y1 a solid or a wire frame triangle is determined by the value of the pen size setting. when pen size = 0 : triangle is solid when pen size = 1 : triangle is wire frame ? 2011 4d systems www.4dsystems.com.au page 18 of 42
MOTG-128 data sheet 4.2.5 draw image-icon - 49hex command cmd, x , y , width , height , colourmode - (command block) block_size, pixel1 , .. pixel254 - (image part block) ... block_size, pixeln , .. pixeln - (image final block) cmd 49 (hex) or i (ascii) : command header byte x image horizontal start position (top left corner). y image vertical start position (top left corner). width horizontal size of the image. height vertical size of the image. colourmode 08 (hex) : 256 colour mode, 8bits/1byte per pixel. 10 (hex) : 65k colour mode, 16bits/2bytes per pixel . block_size total number of bytes for image block (max 254 pixels). pixel1..pixeln image pixel data where n is the total number of pixels. n = width x height (when colourmode = 08hex) n = 2 x width x height (when colourmode = 10hex) response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command displays a bitmap image on to the screen with the top left corner specified by (x, y) and the size of the image specified by width and height parameters. this command is more effective than using the put pixel command, where there are no overheads in specifying the x, y location of each pixel. this command must be sent in a series of blocks. each block consists of a maximum of 255 bytes. the block must be preceded with a 1 byte length of the block. after the motg has processed each block it will sent an ack, either to indicate it is ready for the next block or that the image is complete. ? 2011 4d systems www.4dsystems.com.au page 19 of 42
MOTG-128 data sheet 4.2.6 set background colour - 4bhex command cmd, colour (msb:lsb) cmd 4b (hex) or k (ascii) : command header byte colour 2 bytes (16 bits) define the background colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 lsb : g2g1g0 b4b3b2b1b0 response acknowledge acknowledge 06 (hex) : ack byte if operation successful 15 (hex) : nak byte if unsuccessful description this command sets the background colour for the next erase and draw(refers to opaque mode text in set transparent-opaque text C 4fhex ) commands to be sent. once this command is sent, the background colour will only change when it is rewritten. nothing on the screen will be affected. example command data: 4bhex, ffhex, ffhex this example sets the background colour value to ffffhex (white). ? 2011 4d systems www.4dsystems.com.au page 20 of 42
MOTG-128 data sheet 4.2.7 draw line C 4chex command cmd, x1, y1, x2, y2, colour (msb:lsb) cmd 4c (hex) or l (ascii) : command header byte x1 top left horizontal start position of line. y1 top left vertical start position of line. x2 bottom right horizontal end position of line. y2 bottom right vertical end position of line. colour 2 bytes define the line colour. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw a coloured line from point (x1, y1) to point (x2, y2) on the screen. example command data: 4chex, 00hex, 00hex, 7fhex, 7fhex, ffhex, ffhex draws a white line (ffffhex) from (x1 = 00hex, y1 = 00hex) to (x2 = 7fhex, y2 = 7fhex). ? 2011 4d systems www.4dsystems.com.au page 21 of 42
MOTG-128 data sheet 4.2.8 draw pixel - 50hex command cmd, x, y, colour (msb:lsb) cmd 50 (hex) or p (ascii) : command header byte x horizontal position of the pixel. y vertical position of the pixel. colour 2 bytes (16 bits) define the pixel colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 lsb : g2g1g0 b4b3b2b1b0 response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw a coloured pixel at location (x, y) on the screen. example command data: 50hex, 01hex, 0ahex, ffhex, ffhex draw a white pixel (ffffhex) at location (x = 01hex, y = 0ahex). ? 2011 4d systems www.4dsystems.com.au page 22 of 42
MOTG-128 data sheet 4.2.9 read pixel - 52hex command cmd, x, y cmd 52 (hex) or r (ascii) : command header byte x horizontal position of the pixel. y vertical position of the pixel. response acknowledge, colour( msb:lsb) colour returns back 2 bytes (16 bits) pixel colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 (msb is 1 st byte) lsb : g2g1g0 b4b3b2b1b0 (lsb is 2 nd byte) description this command will read the colour value of a pixel at location (x, y) on the screen and return it to the host. this is a useful command when for example a white pointer is moved across the screen and the host can read the colour on the screen and switch the colour of the pointer when its on top of a light coloured area. note: this command will always return 3 bytes, the first byte will always be the ack/nak. example command data: 52hex, 01hex, 0ahex motg response: 06hex, 00hex, 1fhex reads a blue pixel (001fhex) at location (x = 01hex, y = 0ahex). ? 2011 4d systems www.4dsystems.com.au page 23 of 42
MOTG-128 data sheet 4.2.10 screen copy-paste - 63hex command cmd, xs , ys , xd , yd , width , height cmd 63 (hex) or c (ascii) : command header byte xs top left horizontal start position of screen area to be copied (source). ys top left vertical start position of screen area to be copied (source). xd top left horizontal start position of where copied area is to be pasted (destination). yd top left vertical start position of where copied area is to be pasted (destination). width width of screen area to be copied (source). height height of screen area to be copied (source). response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command copies a specified area of the screen as a bitmap block. the start location of the block to be copied is represented by xs, ys (top left corner) and the size of the area to be copied is represented by width and height parameters. the start location of where the block is to be pasted (destination) is represented by xd, yd (top left corner). this is a very powerful feature for animating objects, smooth scrolling, implementing a windowing system or copying patterns across the screen to make borders or tiles. ? 2011 4d systems www.4dsystems.com.au page 24 of 42
MOTG-128 data sheet 4.2.11 draw polygon - 67hex command cmd, vertices, x1, y1, .. , xn, yn, colour (msb:lsb) cmd 67 (hex) or g (ascii) : command header byte vertices number of vertices from 3 to 7. this byte specifies the number of vertices of the polygon. x1,y1,..xn, yn vertices of the triangle. these can be specified in any fashion. colour 2 bytes triangle colour value. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command draws an empty/wire-frame polygon. up to 7 vertices can be specified in any manner. currently only a wire frame polygon is supported. ? 2011 4d systems www.4dsystems.com.au page 25 of 42
MOTG-128 data sheet 4.2.12 replace colour - 6bhex command cmd, x1, y1, x2, y2, old colour (msb:lsb) , new colour (msb:lsb) cmd 6b (hex) or k (ascii) : command header byte x1 top left horizontal start position. y1 top left vertical start position. x2 bottom right horizontal end position. y2 bottom right vertical end position. old colour 2 bytes (16 bits) define the background colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 lsb : g2g1g0 b4b3b2b1b0 new colour 2 bytes (16 bits) define the background colour in rgb format: r4r3r2r1r0 g5g4g3 g2g1g0 b4b3b2b1b0 where: msb : r4r3r2r1r0 g5g4g3 lsb : g2g1g0 b4b3b2b1b0 response acknowledge acknowledge 06 (hex) : ack byte if operation successful 15 (hex) : nak byte if unsuccessful description this command replaces the old colour of the selected rectangular region to the new specified colour.. ? 2011 4d systems www.4dsystems.com.au page 26 of 42
MOTG-128 data sheet 4.2.13 set pen size - 70hex command cmd, size cmd 70 (hex) or p (ascii) : command header byte size selects one of the 2 options: 00 hex : all graphics objects are drawn solid 01 hex : all graphics objects are drawn wire-frame note: does not apply to polygon command. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command determines if certain graphics objects are drawn in solid or wire frame fashion. examples command data: 70hex, 00hex (all objects will be drawn solid). command data: 70hex, 01hex (all objects will be drawn wire-frame). ? 2011 4d systems www.4dsystems.com.au page 27 of 42
MOTG-128 data sheet 4.2.14 draw rectangle - 72hex command cmd, x1, y1, x2, y2, colour (msb:lsb) cmd 72 (hex) or r (ascii) : command header byte x1 top left horizontal start position of rectangle. y1 top left vertical start position of rectangle. x2 bottom right horizontal end position of rectangle. y2 bottom right vertical end position of rectangle. colour 2 bytes define the rectangle colour. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw a coloured rectangle from point (x1, y1) to point (x2, y2) on the screen. if colour is chosen to be that of the background then the effect will be erasure. if pen size value was previously set to 0, the rectangle will be solid, otherwise it will be wire-frame if value was 1. ? 2011 4d systems www.4dsystems.com.au page 28 of 42
MOTG-128 data sheet 4.3 text commands summary of commands in this section: ? set font C 46hex ? set transparent-opaque text C 4fhex ? draw string of ascii text (graphics format) C 53hex ? draw ascii character (text format) C 54hex ? draw text button C 62hex ? draw string of ascii text (text format) C 73hex ? draw ascii character (graphics format) C 74hex ? 2011 4d systems www.4dsystems.com.au page 29 of 42
MOTG-128 data sheet 4.3.1 set font C 46hex command cmd, fontset cmd 46 (hex) or f (ascii) : command header byte fontset selects one of internal fonts. the supplied 3 fonts are: 00 hex : 5x7 small size font set 01 hex : 8x8 medium size font set 02 hex : 8x12 large size font set these fonts can be altered and other fonts can be added. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command s elects one of the available internal fonts. changes take place after the command is sent. any character on the screen with the previous font set will remain as it was. examples command data: 46hex, 00hex (select small 5x7 font). command data: 46hex, 00hex (select medium 8x8 font). command data: 46hex, 00hex (select large 8x12 font). ? 2011 4d systems www.4dsystems.com.au page 30 of 42
MOTG-128 data sheet 4.3.2 set transparent-opaque text - 4fhex command cmd, mode cmd 4f (hex) or o (ascii) : command header byte mode select one of the following options for text appearance: 00 hex : transparent, objects behind text are visible. 01 hex : opaque, objects behind text blocked by background. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will change the attribute of the text so that an object behind the text can either be blocked or transparent. changes take place after the command is sent. examples command data: 4fhex, 00hex (transparent text mode). command data: 4fhex, 01hex (opaque text mode). ? 2011 4d systems www.4dsystems.com.au page 31 of 42
MOTG-128 data sheet 4.3.3 draw string of ascii text (graphics format) - 53hex command cmd, x, y, font, stringcolour (msb:lsb) , width, height, string, terminator cmd 53 (hex) or s (ascii) : command header byte x top left horizontal start position of the string (pixel units). y top left vertical start position of the string (pixel units). font this byte specifies which internal font set to use for the string. the supplied fonts are: 0 : 5x7 internal font 1 : 8x8 internal font 2 : 8x12 internal font these fonts can be altered and other fonts can be added. or ing the fonts with 0x10 will cause the string to be displayed in a proportional manner (eg 0x10 is font 0 proportional, 0x11 is font 1 proportional, etc). stringcolour 2 bytes define the string text colour. width this byte defines the width or horizontal size multiplier of the character in the string. effects the total width of the string. height this byte defines the height or vertical size multiplier of the character in the string. effects the total height of the string. string string of ascii characters to be displayed (max. 256 characters). terminator the string must be terminated with 00 hex. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw/display a string of ascii text anywhere on the screen in pixel coordinates specified by x and y parameters. the horizontal start position of the string is specified by x and the vertical position is specified by y . the string must be terminated with 00 hex. the size of the characters are determined by the width and height parameters. if the length of the string is longer than the maximum number of characters per line, a wrap around will occur on to the next line. maximum string length is 256 bytes . ? 2011 4d systems www.4dsystems.com.au page 32 of 42
MOTG-128 data sheet 4.3.4 draw ascii character (text format) - 54hex command cmd, char, column, row, charcolour (msb:lsb) cmd 54 (hex) or t (ascii) : command header byte char inbuilt standard ascii character. range : 32dec C 127dec (20hex - 7fhex). column horizontal position of the character (character units). range : 0 - 20 for 5x7 font. range : 0 - 15 for 8x8 and 8x12 fonts. row vertical position of the character (character units). range : 0 - 15 for 5x7 and 8x8 fonts. range : 0 - 9 for 8x12 font. charcolour 2 bytes define the character colour. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw/display an ascii character anywhere on the screen in character unit coordinates. the horizontal position of the character is specified by the column and the vertical position is specified by the row parameters . example command data: 54hex, 41hex, 00hex, 00hex, ffhex, ffhex draw/display character a (41hex) at column = 0, row = 0, colour = white (ffffhex). ? 2011 4d systems www.4dsystems.com.au page 33 of 42
MOTG-128 data sheet 4.3.5 draw text button - 62hex command cmd, state, x, y, buttoncolour (msb:lsb) , font, stringcolour (msb:lsb) , width, height, string, terminator cmd 62 (hex) or b (ascii) : command header byte state this byte specifies whether the displayed button is drawn up (not pressed) or down (pressed). 0 : button down (pressed) 1 : button up (not pressed) x top left horizontal start position of the button. y top left vertical start position of the button. buttoncolour 2 bytes define the button colour. font this byte specifies which internal font set to use for the string. the supplied fonts are: 0 : 5x7 internal font 1 : 8x8 internal font 2 : 8x12 internal font these fonts can be altered and other fonts can be added. stringcolour 2 bytes define the string text colour. width this byte defines the width or horizontal size (x magnification) of the character in the string. effects the total width of the string and button. height this byte defines the height or vertical size (y magnification) of the character in the string. effects the total height of the string and button. string string of ascii characters displayed inside the button. limit the string to a single line width. terminator the string must be terminated with 00 hex. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will place a text button similar to the ones used in a pc windows environment. the (x, y) refers to the top left corner of the button and the size of the button is automatically calculated and drawn on the screen with the string text relatively justified inside the button. the button can be displayed in an up (button not pressed) or down (button pressed) position by specifying the appropriate value in the ' state' byte. separate button and text colours provide many variations in appearance and format. ? 2011 4d systems www.4dsystems.com.au page 34 of 42
MOTG-128 data sheet 4.3.6 draw string of ascii text (text format) - 73hex command cmd, column, row, font, stringcolour (msb:lsb) , string, terminator cmd 73 (hex) or s (ascii) : command header byte column horizontal start position of the string (character units). range : 0 - 20 for 5x7 font. range : 0 - 15 for 8x8 and 8x12 fonts. row vertical start position of the string (character units). range : 0 - 15 for 5x7 and 8x8 fonts. range : 0 - 9 for 8x12 font. font this byte specifies which internal font set to use for the string. the supplied fonts are: 0 : 5x7 internal font 1 : 8x8 internal font 2 : 8x12 internal font these fonts can be altered and other fonts can be added. or ing the fonts with 0x10 will cause the string to be displayed in a proportional manner (eg 0x10 is font 0 proportional, 0x11 is font 1 proportional, etc). stringcolour 2 bytes define the string text colour. string string of ascii characters to be displayed (max. 256 characters). terminator the string must be terminated with 00 hex. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw/display a string of ascii text anywhere on the screen in character unit coordinates. the horizontal start position of the string is specified by the column and the vertical position is specified by the row parameters . the string must be terminated with 00 hex. if the length of the string is longer than the maximum number of characters per line, a wrap around will occur on to the next line. maximum string length is 256 bytes . ? 2011 4d systems www.4dsystems.com.au page 35 of 42
MOTG-128 data sheet 4.3.7 draw ascii character (graphics format) - 74hex command cmd, char, x, y, charcolour (msb:lsb) , width, height cmd 74 (hex) or t (ascii) : command header byte char inbuilt standard ascii character. range : 32dec C 127dec (20hex - 7fhex). x horizontal position of the character (pixel units). y vertical position of the character (pixel units). charcolour 2 bytes define the character colour. width this byte defines the width or horizontal size (multiplier) of the character. height this byte defines the height or vertical size (multiplier) of the character. response acknowledge acknowledge 06 (hex) : ack byte if successful 15 (hex) : nak byte if unsuccessful description this command will draw/display an ascii character anywhere on the screen in pixel coordinates specified by x and y parameters. unlike the draw ascii character (text format) command, this option allows text of any size (determined by width and height ) to be placed at any position. the font of the character is determined by the set font command. ? 2011 4d systems www.4dsystems.com.au page 36 of 42
MOTG-128 data sheet 5. lcd screen precautions ? avoid having to display the same image/object on the screen for lengthy periods of time. this will cause a burn-in which is a common problem with all types of display technologies. blank the screen after a while or dim it very low by adjusting the contrast. better still; implement a screen saver feature. ? the display can be easily scratched. the soft polarisation film on the glass surface may be damaged if rubbed by hard objects. handle with care to avoid scratching the display. ? moisture and water can damage the display. moisture on the surface of a powered display will cause the electrodes to corrode. wipe off any moisture gently or let the display dry before usage. ? dirt from fingerprint oil and fat can easily stain the surface of the display. gently wipe off any stains with a soft lint-free cloth. ? the performance of the display will degrade under high temperature and humidity. avoid such conditions when storing. ? displays are susceptible to mechanical shock and any force exerted on the module may result in deformed zebra strips and cracks. ? 2011 4d systems www.4dsystems.com.au page 37 of 42
MOTG-128 data sheet 6. development, support and test tools 6.1 motg programming cable and adaptor the combination of the 4d-programming-cable and the motg-program-adaptor provides a convenient physical link between the pc and the motg module via the usb port. the motg module to pc link is required when: ? testing the motg module with fat-controller software tool ? programming the motg module with pmmc file ? note: the 4d-programming-cable and the motg-program-adaptor will need to be purchased separately. 6.2 4d fat controller C software test tool the 4d fat-controller is a free software tool to quickly test the functionality of the motg device using your pc, prior to writing any piece of embedded code for your platform to communicate with the motg module. the fat-controller simulates the embedded host controller and provides an easy means of exercising the available commands. ? note: to use the motg module with the fat-controller, you'll need to program the module with a special test pmmc file. refer to section 6.3 on how to program a pmmc file. latest test pmmc can be found here: www.4dsystems.com.au/downloads/motg/MOTG-128/pmmc/test/ ? 2011 4d systems www.4dsystems.com.au page 38 of 42
MOTG-128 data sheet 6.3 programming the motg with a pmmc file pmmc is an abbreviation of personality-module-micro-code. the goldleox chip used in the motg device is a custom controller and all functionality including the high level commands are built into the chip. this chip level configuration is available as a pmmc file and contains all of the low level micro-code information (analogy of that of a soft silicon) which define the characteristics and functionality of the motg device. the ability of programming the device with a pmmc file provides an extremely flexible method of customising as well as upgrading the motg with future enhancements. as we make further improvements, we will release pmmc file updates and you should check regularly to benefit from these enhancements. you can download the latest version from here: www.4dsystems.com.au/downloads/motg/MOTG-128/pmmc/embedded/ to program the motg module with its pmmc file follow these steps: ? download the pmmc-loader software tool. ? run the pmmc loader. ? select the com port your motg is attached to (using the programming cable & adaptor). ? select the motg pmmc file you've just downloaded. there's a small browser button on the right hand side to help you locate the file. ? click the 'load' button. the progress bar will inform you when the programming is done. ? note: the motg module is always shipped, factory programmed, with the latest pmmc file. it is advisable that you check regularly for the latest updates here: www.4dsystems.com.au/downloads/motg/MOTG-128/pmmc/embedded/ 6.4 micro-sd to sd adaptor if your embedded hardware platform uses an sd connector, you'll need a micro-sd to sd adaptor. these should be readily available from most suppliers and are also available from 4d systems online shopping cart. ? 2011 4d systems www.4dsystems.com.au page 39 of 42
MOTG-128 data sheet 7. specifications and ratings absolute maximum ratings operating ambient temperature .......................................................................... -35c to +75c storage temperature ............................................................................................. -40c +80c voltage on any digital input pin with respect to gnd ................................................... -0.3v to 6.0v voltage on switch pin with respect to gnd ............................................................ -0.3v to 6.0v voltage on vcc with respect to gnd ......................................................................... -0.3v to 6.0v maximum current out of gnd pin ...................................................................................... 300ma maximum current into vcc pin ......................................................................................... 250ma maximum output current sunk/sourced by any pin ............................................................... 4.0ma total power dissipation ....................................................................................................... 1.0w note : stresses above those listed here may cause permanent damage to the device. this is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the recommended operation listings of this specification is not implied. exposure to maximum rating conditions for extended periods may affect device reliability. recommended operating conditions parameter conditions min typ max units supply voltage (vcc) 3.0 3.3 3.6 v operating temperature -30 -- +70 c input low voltage sdi, cs pins gnd -- 0.8 v input high voltage sdi, cs pins 2.0 3.3 5.0 v reset pulse external open collector 2.0 -- -- s operational delay power-up or external reset 1000 -- -- ms global characteristics based on operating conditions parameter conditions min typ max units supply current (icc) vcc = 3.3v 14 50 70 ma output low voltage (vol) sdo pin, iol = 3.4ma -- -- 0.4 v output high voltage (voh) sdo pin, iol = -2.0ma 2.4 -- 3.3 v capacitive loading all pins -- -- 50 pf flash memory endurance motg pmmc programming -- 1000 -- e/w ? 2011 4d systems www.4dsystems.com.au page 40 of 42
MOTG-128 data sheet optical characteristics parameter condition temp. min typ max unit luminance vcc = 3.3v -- -- 250 -- cd/m 2 response time rise time(tr) = = 0 0 -10 0 c -- -- -- msec decay time(td) -- -- -- rise time(tr) 25 0 c -- -- 240 decay time(td) -- -- 240 rise time(tr) 60 0 c -- -- -- decay time(td) -- -- -- viewing angle = 0 0 25 0 c -- -- 30 deg = 90 0 -- -- 30 = 180 0 -- -- 30 = 270 0 -- -- 30 contrast ratio cr = = 0 0 25 0 c 300 450 -- -- ordering information order code: MOTG-128 package: 150mm x 95mm (zif bag dimensions). packaging: module sealed in antistatic padded zif bag. ? 2011 4d systems www.4dsystems.com.au page 41 of 42
MOTG-128 data sheet proprietary information the information contained in this document is the property of 4d systems pty. ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed with out prior written permission. 4d systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. the development of 4d systems products and services is continuous and published information may not be up to date. it is important to check the current position with 4d systems. all trademarks belong to their respective owners and are recognised and acknowledged. disclaimer of warranties & limitation of liability 4d systems makes no warranty, either express or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non- infringement and fitness for any particular purpose. information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. in no event shall 4d systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4d systems, or the use or inability to use the same, even if 4d systems has been advised of the possibility of such damages. 4d systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail C safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage (high risk activities). 4d systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for high risk activities. use of 4d systems products and devices in 'high risk activities' and in any other application is entirely at the buyers risk, and the buyer agrees to defend, indemnify and hold harmless 4d systems from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any 4d systems intellectual property rights.. contact information for technical support : support@4dsystems.com.au for sales support : sales@4dsystems.com.au website : www.4dsystems.com.au copyright 4d systems pty. ltd. 2000-2011. ? 2011 4d systems www.4dsystems.com.au page 42 of 42


▲Up To Search▲   

 
Price & Availability of MOTG-128

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X